#include "StdAfx.h"
#include "PositionReq.h"


PositionReq::PositionReq(Ogre::Vector3 p, float r)
{
	pos = p;
	proximityRadius = r;
}


PositionReq::~PositionReq(void)
{
}


bool PositionReq::CheckReq(EntityControl *entity)
{
	float distance = (pos-entity->getPosition()).length();
	if(distance<=proximityRadius)
		return true;
	else
		return false;
}